<?php
###############   COPYLEFT GPLv3 LICENSE   ###############
##
## JFX Version 0.2.9
## Website Management Software
## www.jfxcms.com
##
## Copyright 2009 GPLv3 - http://www.opensource.org/licenses/gpl-3.0.html
##
## Anthony Gallon
## oi_antz@hotmail.com
##
## Permission is hereby granted to any person having a copy of this software
## to freely use and modify as required so long as the copyright notices
## and branding remain intact.
##
## Full license details available at http://www.jfxcms.com/license
##
###############   COPYLEFT GPLv3 LICENSE   ###############

class JFX_Module_Blockstyle_Widget_Border extends JFX_Module_Blockstyle_Widget_Base
{
	public $id = 'border';
	public $value = '';
	public $unit = 'hex';
	public $showValue = true;
	public $widgets = array();
	public $name = 'Border Sides';
	public $topThickness = 1;
	public $rightThickness = 1;
	public $bottomThickness = 1;
	public $leftThickness = 1;
	public $currentBorderSide = 'left';
	public $topColor = '#000000';
	public $rightColor = '#000000';
	public $bottomColor = '#000000';
	public $leftColor = '#000000';
	public $topStyle = 'solid';
	public $rightStyle = 'solid';
	public $bottomStyle = 'solid';
	public $leftStyle = 'solid';
	public $styles = array(
	    'solid',
	    'dotted',
	    'dashed',
	    'inset',
	    'outset',
	    'double',
	    'groove',
	    'ridge',
	    'inherit'
	);
	public $styleNames = array(
	    'Solid',
	    'Dotted',
	    'Dashed',
	    'Inset',
	    'Outset',
	    'Double',
	    'Groove',
	    'Ridge',
	    'Inherit'
	);

	public function getCssValue($side)
	{
		$thicknessVarname = $side.'Thickness';
		$colorVarname = $side.'Color';
		$styleVarname = $side.'Style';
		return $this->$styleVarname.' '.$this->$thicknessVarname.'px '.$this->$colorVarname;
	}


}


